package main.java.ssm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import ssm.dao.AdminDao;
import ssm.pojo.Admin;
import ssm.service.AdminService;

/**
 * Created by Administrator on 2017/6/13.
 */
@Service("AdminService")
public class AdminServiceImpl implements AdminService {

    @Autowired AdminDao adminDao;

    @Override
    public Admin selectByPrimaryKey(Integer id) {
        return adminDao.selectByPrimaryKey(id);

    }

    @Override
    public int insert(Admin record) {

        return adminDao.insert(record);

    }

    @Override
    public Admin findAdminByUsername(String username) {

        return adminDao.findAdminByUsername(username);
    }
}
